﻿<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2" assembly="OpenAPI.Model" namespace="OpenAPI.Model.OAuth">

	<class  name="OpenAPI.Model.OAuth.ConsumerInfo, OpenAPI.Model" table="T_OAUTH_CONSUMER">

		<id name="OAUTH_CONSUMER_KEY" column="OAUTH_CONSUMER_KEY" type="String" length="32">
			<generator class="assigned" />
		</id>
		<property name="OAUTH_CONSUMER_SECRET" column="OAUTH_CONSUMER_SECRET" type="String" length="32" not-null ="true"/>
		<property name="CONSUMER_REQUEST_URL" column="CONSUMER_REQUEST_URL" type="String" length="300" not-null ="true"/>
		<property name="CONSUMER_CALLBACK_URL" column="CONSUMER_CALLBACK_URL" type="String" length="300" not-null ="true"/>
		<property name="CONSUMER_STATUS" column="CONSUMER_STATUS" type="int" not-null ="true"/>
		<property name="CONSUMER_NAME" column="CONSUMER_NAME" type="String" length="200" not-null ="true"/>
		<property name="CONSUMER_EMAIL" column="CONSUMER_EMAIL" type="String" length="50" />
		<property name="CONSUMER_LEVEL" column="CONSUMER_LEVEL" type="String" length="10"  not-null ="true"/>
		
	</class>

</hibernate-mapping>
